// Copyright (c) 2009 Mike Haight, Andy Kipp
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without
// restriction, including without limitation the rights to use,
// copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following
// conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
// OTHER DEALINGS IN THE SOFTWARE.


#pragma once

//
// Standard Headers
//

#include <math.h>
#include <windows.h>


//
// DirectX Headers
//

#ifdef _D3D10_1
    #include <d3d10_1.h>
    #include <d3d10.h>
    #include <d3dx10.h>
#else
#ifdef _D3D9
    #include <d3d9.h>
    #include <d3dx9.h>
#endif /* _D3D9 */
#endif /* _D3D10_1 */

#define DIRECTINPUT_VERSION 0x0800
#include <dinput.h>


//
// References
//

using namespace System;
using namespace System::Collections;
using namespace System::Collections::Generic;
using namespace System::IO;
using namespace System::Runtime::CompilerServices;
using namespace System::Runtime::InteropServices;
using namespace System::Threading;
using namespace System::Xml;
using namespace System::Xml::Schema;
using namespace System::Xml::Serialization;

//
// Project Includes
//

// #defines
#define SAFE_DELETE(_Pointer) do { if (NULL != _Pointer) { delete _Pointer; _Pointer = NULL; } } while (0, 0)
#define SAFE_RELEASE(_IUnknown) do { if (NULL != _IUnknown) { _IUnknown->Release(); _IUnknown = NULL; } } while(0, 0)
#define SAFE_RELEASE_INTPTR(_IUnknown) do { if (IntPtr::Zero != _IUnknown) { reinterpret_cast<IUnknown*>(_IUnknown.ToPointer())->Release(); _IUnknown = IntPtr::Zero; } } while(0, 0)


// HandBanana::Utilities::Coordinates
#include "Location.h"
#include "Size.h"
#include "Rectangle.h"
using namespace HandBanana::Utilities::Coordinates;

// HandBanana::Utilities
#include "Actions.h"
#include "Orientation.h"
using namespace HandBanana::Utilities;

// HandBanana::Resources
#include "Frame.h"
#include "Texture.h"
#include "MapDescription.h"
#include "TileDescription.h"
#include "ObjectDescription.h"
#include "QuestDescription.h"
#include "ResourceManager.h"
using namespace HandBanana::Resources;

// HandBanana::Core::Graphics
#include "Window.h"
#include "Sprite.h"
#include "IRenderable.h"
#include "Renderable.h"
#include "Renderer.h"
using namespace HandBanana::Core::Graphics;

// HandBanana::Core::Graphics::Effects
#include "ParticleSettings.h"
#include "Particle.h"
#include "ParticleSystem.h"
#include "SmokeParticle.h"
#include "FireParticle.h"
#include "AuraParticle.h"
using namespace HandBanana::Core::Graphics::Effects;

// HandBanana::Scripting
#include "ScriptObject.h"
#include "ScriptingEngine.h"
using namespace HandBanana::Scripting;

// HandBanana::UserInterface
#include "UIObject.h"
#include "LoadingBar.h"
#include "HealthBar.h"
#include "MagicBar.h"
#include "UI.h"

using namespace HandBanana::UserInterface;

// HandBanana::Game
#include "Trigger.h"
#include "WorldObject.h"
#include "Tile.h"
#include "Map.h"
#include "Layer.h"
#include "Item.h"
#include "Player.h"
#include "Quest.h"
#include "World.h"
#include "Monster.h"
using namespace HandBanana::Game;

// HandBanana::Engine
#include "Input.h"
#include "Timer.h"
#include "Engine.h"
using namespace HandBanana::Core;